package org.example.service;

import java.util.List;
import org.example.dto.RestResult;
import org.example.entity.UserLogDO;
import org.example.query.UserLogQuery;

/**
 * 用户操作日志服务接口
 */
public interface UserLogService {
    RestResult<Void> recordRegisterLog(Integer userId, String details);
    RestResult<Void> recordLoginLog(Integer userId, String ipAddress, String userAgent, String details);
    RestResult<Void> recordLogoutLog(Integer userId, String details);
    RestResult<List<UserLogDO>> queryUserLogs(UserLogQuery query);
}